import ajax from './index'


export const getSearchDetail = async () => {
  return ajax('/search/hot/detail')
}

// 获得轮播图
export const getBannersDetail = () => {
  return ajax({
    url: '/banner'
  })
}

// 推荐歌单
export const getIntroSongsDetail = (idx) => {
  return ajax({
    url: '/personalized',
    params: {
      limit: idx
    }
  })
}

// 获得独家放送
export const getPrivateDetail = () => {
  return ajax({
    url: '/personalized/privatecontent'
  })
}

// 获得最新音乐
export const getSongsDetail = () => {
  return ajax({
    url: '/personalized/newsong'
  })
}

// 获得推荐音乐详细页详细信息
export const getIntroDetail = (id) => {
  return ajax({
    url: '/playlist/detail',
    params: {
      id,
    }
  })
}